<?php
require_once __DIR__ . "/../fast_theme/base.php";

use fast\Controller;

$cookie = Typecho_Cookie::getPrefix();
$notice = $cookie . '__typecho_notice';
$type   = $cookie . '__typecho_notice_type';
$qmsg   = '';
if (isset($_COOKIE[$notice]) && isset($_COOKIE[$type]) && ($_COOKIE[$type] == 'success' || $_COOKIE[$type] == 'notice' || $_COOKIE[$type] == 'error')) {
    $qmsg = preg_replace('#\[\"(.*?)\"\]#', '$1', $_COOKIE[$notice]);
}
Typecho_Cookie::delete('__typecho_notice');
Typecho_Cookie::delete('__typecho_notice_type');

require_once Controller::instance()->view->fetch();